function searchManagerSequence(){
	var managerPostId = $("#managerPostId").val();
	var url = rootPath + "/managers/searchManagerSequence.mge";
	$.ajax({
		url: url,
		type: "POST",
		data:"postId="+managerPostId,
		dataType: "text",
		success: function( response ) {
		  	var data=$.parseJSON(response);
			if(data.state=="200"){
				document.getElementById("managerSequence").value=data.msg;
				//alert(data.msg);
			}else{
				alert('fail',data.msg);
			}
		}
	});
}

function saveManagerSequence(){
	var managerPostId = $("#managerPostId").val();
	var managerSequence = $("#managerSequence").val();
	var url = rootPath + "/managers/saveManagerSequence.mge";
	$.ajax({
		url: url,
		type: "POST",
		data:"postId="+managerPostId+"&managerSequence="+managerSequence,
		dataType: "text",
		success: function( response ) {
		  	var data=$.parseJSON(response);
			if(data.state=="200"){
				alert(data.msg);
				//alert(data.msg);
				searchManagerSequence();
			}else{
				alert('fail',data.msg);
			}
		}
	});
}